//
//  WaTableViewCell.m
//  KnowEveryThings
//
//  Created by lanou3g on 16/5/7.
//  Copyright © 2016年 王玲. All rights reserved.
//

#import "WaModelCell.h"
#import "UIImageView+WebCache.h"
@interface WaModelCell()
//小图片1
@property (weak, nonatomic) IBOutlet UIImageView *image1;
//小图片2
@property (weak, nonatomic) IBOutlet UIImageView *image2;
//大图片
@property (weak, nonatomic) IBOutlet UIImageView *imaged;
//标题
@property (weak, nonatomic) IBOutlet UILabel *titlelabel;
//标签
@property (weak, nonatomic) IBOutlet UILabel *labelbb;
@end
@implementation WaModelCell

- (void)setmodel:(WaModel *)model{
    if (_waMolde != model) {
        _waMolde = model;
    }
}
- (void)layoutSubviews{
    
    self.titlelabel.text = self.waMolde.title;
    self.labelbb.text = self.waMolde.source;
    self.image1.image = [UIImage imageNamed:self.waMolde.img];
    self.image2.image = [UIImage imageNamed:self.waMolde.img];
    self.imaged.image = [UIImage imageNamed:self.waMolde.imgsrc];
    
}
@end
